package com.lyf.emp.entity;


import java.io.Serializable;
import java.util.List;

public class Student implements Serializable {

  private Integer id;
  private String name;
  private String sex;
  private List<Subject> subjectList;

  public List<Subject> getSubjectList() {
    return subjectList;
  }

  public void setSubjectList(List<Subject> subjectList) {
    this.subjectList = subjectList;
  }

  public Student(Integer id, String name, String sex) {
    this.id = id;
    this.name = name;
    this.sex = sex;
  }

  public Student() {
  }

  @Override
  public String toString() {
    return "Student{" +
            "id=" + id +
            ", name='" + name + '\'' +
            ", sex='" + sex + '\'' +
            ", subjectList=" + subjectList +
            '}';
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }


  public String getSex() {
    return sex;
  }

  public void setSex(String sex) {
    this.sex = sex;
  }

}
